package com.preskool.mapper;

import com.preskool.po.Library;
import com.preskool.po.LibraryExample;
import java.util.List;

import com.preskool.dto.LibraryVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

@Repository
public interface LibraryMapper {
    long countByExample(LibraryExample example);

    int deleteByExample(LibraryExample example);

    int deleteByPrimaryKey(Integer lid);

    int insert(Library record);

    int insertSelective(Library record);

    List<Library> selectByExample(LibraryExample example);

    Library selectByPrimaryKey(Integer lid);

    int updateByExampleSelective(@Param("record") Library record, @Param("example") LibraryExample example);

    int updateByExample(@Param("record") Library record, @Param("example") LibraryExample example);

    int updateByPrimaryKeySelective(Library record);

    int updateByPrimaryKey(Library record);

    //自定义查询方法
    List<LibraryVo>
    findAllLibrary(LibraryExample example);

    //自定义删除图书数据
    int deleteLibrary(Integer lid);


}